package org.qqcui.designpattern.patterns.adapter.springmvc;

/**
 * 注解适配器实现类
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022/4/28 17:42
 **/
public class AnnotationHandlerAdapter implements HandlerAdapter {
    @Override
    public boolean supports(Object handler) {
        return handler instanceof AnnotationController;
    }

    @Override
    public void handle(Object handler) {
        ((AnnotationController) handler).doAnnotationHandler();
    }
}
